/**
 * jims
 */
package com.jims.master.modules.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 用户协议Entity
 * @author qlx
 * @version 2017-04-28
 */
public class SysProtocol extends DataEntity<SysProtocol> {
	
	private static final long serialVersionUID = 1L;
	private String agreeContent;		// 合同协议内容
	private Date agreeDate;		// 合同协议日期
	private String agreeNum;		// 合同协议编号
	private String agreeRemark;		// 协议备注
	private String agreeState;		// 协议状态
	private String agreeType;		// 协议类型
	private String agreeTitle;		// 合同协议标题
	
	public SysProtocol() {
		super();
	}

	public SysProtocol(String id){
		super(id);
	}

	@Length(min=0, max=255, message="合同协议内容长度必须介于 0 和 255 之间")
	public String getAgreeContent() {
		return agreeContent;
	}

	public void setAgreeContent(String agreeContent) {
		this.agreeContent = agreeContent;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAgreeDate() {
		return agreeDate;
	}

	public void setAgreeDate(Date agreeDate) {
		this.agreeDate = agreeDate;
	}
	
	@Length(min=0, max=255, message="合同协议编号长度必须介于 0 和 255 之间")
	public String getAgreeNum() {
		return agreeNum;
	}

	public void setAgreeNum(String agreeNum) {
		this.agreeNum = agreeNum;
	}
	
	@Length(min=0, max=255, message="协议备注长度必须介于 0 和 255 之间")
	public String getAgreeRemark() {
		return agreeRemark;
	}

	public void setAgreeRemark(String agreeRemark) {
		this.agreeRemark = agreeRemark;
	}
	
	@Length(min=0, max=255, message="协议状态长度必须介于 0 和 255 之间")
	public String getAgreeState() {
		return agreeState;
	}

	public void setAgreeState(String agreeState) {
		this.agreeState = agreeState;
	}
	
	@Length(min=0, max=255, message="协议类型长度必须介于 0 和 255 之间")
	public String getAgreeType() {
		return agreeType;
	}

	public void setAgreeType(String agreeType) {
		this.agreeType = agreeType;
	}
	
	@Length(min=0, max=255, message="合同协议标题长度必须介于 0 和 255 之间")
	public String getAgreeTitle() {
		return agreeTitle;
	}

	public void setAgreeTitle(String agreeTitle) {
		this.agreeTitle = agreeTitle;
	}
	
}